﻿
cmake_minimum_required (VERSION 3.7)

project (serial_port)

include_directories(
	./
	../support
	)
	
aux_source_directory(../support DIR_SUPPORT)

IF(WIN32)	
	aux_source_directory(./WIN32 BY_SYSTEM)
ELSEIF(UNIX)
	aux_source_directory(./UNIX BY_SYSTEM)
ENDIF()


add_library (serialport SHARED	${BY_SYSTEM})
set_target_properties(serialport PROPERTIES LINKER_LANGUAGE CXX)

add_executable (serialport_tester ${DIR_SUPPORT} tester.cpp)
target_link_libraries (serialport_tester serialport)
